package com.njtoyo.taxi.admin.service.local_service.commodity;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.entity.local_service.LifeMerchantCommodityCategory;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.platform.PlatformAddWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.platform.PlatformUpdateWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.local_service.platform.PlatformWrapper;
import com.taxi.entity.common.RestResult;
import com.njtoyo.taxi.entity.backend.AdminUser;

import java.util.List;

public interface CategoryService {
    RestResult<List<LifeMerchantCommodityCategory>> all();

    RestResult<Page<LifeMerchantCommodityCategory>> getPage(AdminUser adminUser, PlatformWrapper wrapper);

    RestResult add(AdminUser adminUser, PlatformAddWrapper wrapper);

    RestResult update(Long id, PlatformUpdateWrapper wrapper);

    RestResult delete(Long id);

}
